import request from "./request";

interface RoleResType {
  list: RoleListType[];
  total: number;
}

interface RoleListType {
  adminCount: number;
  createTime: string;
  description: string;
  id: number;
  name: string;
  sort: number;
  status: 0 | 1;
}

//获取角色列表
export const getRoleList = (
  data: AdminListParams
): PromiseResType<RoleResType> => request.get("/role/list", { params: data });
